package com.example.handleuser;

public class Questions {

	private int q_id;
	private String Question;
	private String option1;
	private String option2;
	private String option3;
	private String option4;
	private String answer;
	private int question_points;

	public int getQuestion_points() {
		return question_points;
	}

	public void setQuestion_points(int streak) {
		int q_points = 1;
		if (streak != 0) {
			q_points=(streak/7)+1;
		}else if((streak==0)){
			q_points=10;
		}
		
		this.question_points = q_points;
	}

	public int getQ_id() {
		return q_id;
	}

	public void setQ_id(int q_id) {
		this.q_id = q_id;
	}

	public String getQuestion() {
		return Question;
	}

	public void setQuestion(String question) {
		Question = question;
	}

	public String getOption1() {
		return option1;
	}

	public void setOption1(String option1) {
		this.option1 = option1;
	}

	public String getOption2() {
		return option2;
	}

	public void setOption2(String option2) {
		this.option2 = option2;
	}

	public String getOption3() {
		return option3;
	}

	public void setOption3(String option3) {
		this.option3 = option3;
	}

	public String getOption4() {
		return option4;
	}

	public void setOption4(String option4) {
		this.option4 = option4;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	Questions() {

		q_id = 0;
		Question = "XYZ";
		option1 = "Default1";
		option2 = "Default2";
		option3 = "Default3";
		option4 = "Default4";
		answer = "Default";
		question_points = 1;
	}

}